package com.challenge.smsweb.coursemanage;

import com.challenge.smsbase.Controller.GenericController;
import com.challenge.smsdao.coursemanage.domain.Course;
import com.challenge.smsservice.coursemanage.service.CourseManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * GAQ
 */
@RestController
@RequestMapping(value = "course")
public class CourseController extends GenericController<Course,Long, CourseManager> {

    CourseManager courseManager;

    /**
     * setCourseManager
     * @param courseManager
     */
    @Autowired
    public void setCourseManager(CourseManager courseManager){
        this.courseManager = courseManager;
        this.manager = this.courseManager;
    }
}
